# -*- coding: utf-8 -*-
from openerp import models, fields, api

class gmq_bs_seat_floor(models.Model):
    '''
    图书馆楼层
    '''
    _name = 'gmq.bs.seat.floor'
    _rec_name = 'name'
    _description = u'图书馆楼层'

    name = fields.Char(u'楼层名')
    isactivity = fields.Boolean(u'是否开放',default = True)
    room = fields.One2many('gmq.bs.seat.room','dyfloor',u'关联教室')
    seat = fields.One2many('gmq.bs.seat','floor',u'关联座位')
    library = fields.Many2one('gmq.bs.seat.library',u'图书馆')
